<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
	<head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?php echo $pagetitle; ?></title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">
        
        <link rel="icon" href="favicon.ico?v=1.1"> 

    	<!-- styles -->
        
        <link rel="stylesheet" href="css/normalize.css">
        <script src="js/vendor/modernizr-2.6.2.min.js"></script>
        <link rel="stylesheet" href="css/vendor/bootstrap.css">
        <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css'>
        <?php echo $pagestyles; ?> 
        <link rel="stylesheet/less" type="text/css" href="css/styles.css" />

    </head>
    
    <body>
    
    <div class="sidebar-menu">
        <a href="#" class="sidebar-open-close">
            menu
        </a>
        <ul>
            <li>
                <a href="#" class="experiments">Experiments</a>
                <ul>
                    <li><a href="youtube-background">Full screen video</a></li>
                    <li><a href="3d-css">CSS 3D Transformations</a></li>
                </ul>
            </li>
            <li>
                <a href="/lab" class="homepage">Homepage</a>
            </li>
        </ul>
    </div>
    
    <!--[if lt IE 7]>
    	<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
    <![endif]-->
    
    <?php
    echo $pagemaincontent; 
    ?>
     
    <!-- javascript -->
    <script src="js/vendor/less-1.3.3.min.js"></script>
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
    <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
    <script src="js/plugins.js"></script>
    <script src="js/vendor/html5shiv.js"></script>
    <?php echo $pagescripts; ?>
    <script src="js/main.js"></script>
    
    <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
    <script>
		var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
		(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
		g.src='//www.google-analytics.com/ga.js';
		s.parentNode.insertBefore(g,s)}(document,'script'));
    </script>

    </body>
</html>